package com.zk.yygh.user_client.service;

import com.zk.yygh.model.user.Patient;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 张凯
 * @date: 2022/6/20 - 15:50
 */
@FeignClient("service-user")
@Repository
public interface UserFeignClient {

    @ApiOperation("根据就诊id获取就诊人，供远程调用")
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientById(@PathVariable("id") Long id);
}
